package edu.zhku.ttms.view.panel.content;

import edu.zhku.ttms.utils.SystemConst;

import javax.swing.*;

/**
 * @author Feng
 * @since 2021/4/23 23:04
 */
public class ViewPanel extends JPanel {

    private final boolean showMenuBar;

    public ViewPanel(boolean showMenuBar) {
        this.setLayout(null);
        this.setBackground(SystemConst.BACKGROUND_COLOR);
        this.setOpaque(true);
        this.showMenuBar = showMenuBar;
    }

    public boolean isShowMenuBar() {
        return showMenuBar;
    }
}